import { axios } from '@/utils/request'


/**
 * 根据类型代码获取数据字典
 * @param params
 * @returns {AxiosPromise}
 */
export function getDefBIzdictByLxdm(params) {
    return axios({
        url: "/vatoutinv/defBizdict/getDefBIzdictByLxdm",
        method:'get',
        params
    })
}


/**
 * 更新缓存
 * @param params
 * @returns {AxiosPromise}
 */
export function updateCache(params) {
    return axios({
        url: "/vatoutinv/cache/updateCache",
        method:'get',
        params
    })
}

/**
 * 获取所有角色
 * @param params
 * @returns {AxiosPromise}
 */
export function getAllSysRoles(params) {
    return axios({
        url: "/vatoutinv/sysRoles/getAllSysRoles",
        method:'get',
        params
    })
}
/**
 * 部门信息-下拉框部门列表
 * @param params
 * @returns {AxiosPromise}
 */
export function getFramedepartmentList(params) {
    return axios({
        url: "/vatoutinv/framedepartment/getFramedepartmentList",
        method:'get',
        params
    })
}
/**
 * 部门信息-下拉框tree部门
 * @param params
 * @returns {AxiosPromise}
 */
export function getTreeFramedepartmentList(isAll = false) {
    return axios({
        url: "/vatoutinv/framedepartment/getTreeFramedepartmentList?isAll=" + isAll,
        method:'post',
    })
}
